#include <QApplication>
#include "signals.h"

int main (int c, char **v)
{
    QApplication app(c,v);

    Signals a, b;
    QObject::connect(&a, SIGNAL(valueChanged(int, int)), &a, SLOT(onValueChanged(int, int)));
    QObject::connect(&a, SIGNAL(valueChanged(int, int)), &b, SLOT(setValue(int)));
   // QObject::connect(&a, SIGNAL(valueChanged(int, int)), &b, SLOT(onValueChanged(int, int)));
    QObject::connect(&b, SIGNAL(valueChanged(int, int)), &b, SLOT(onValueChanged(int, int)));
    a.setValue(12);
    a.setValue(48);

    return app.exec();
}

